From 44cdadd1cd9fc7e081498d4b453b52ffd4cc6380 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 6 Aug 2007 13:19:44 +0100 Subject: [PATCH] [32on64] Copy the right grant table status code back to the guest. Signed-off-by: Ian Campbell --- xen/common/compat/grant_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/compat/grant_table.c b/xen/common/compat/grant_table.c index 342e35622d..882d435a65 100644 --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -161,7 +161,7 @@ int compat_grant_table_op(unsigned int cmd, while ( n-- ) { guest_handle_add_offset(xfer, -1); - if ( __copy_field_to_guest(xfer, nat.xfer, status) ) + if ( __copy_field_to_guest(xfer, nat.xfer + n, status) ) rc = -EFAULT; } } @@ -199,7 +199,7 @@ int compat_grant_table_op(unsigned int cmd, while ( n-- ) { guest_handle_add_offset(copy, -1); - if ( __copy_field_to_guest(copy, nat.copy, status) ) + if ( __copy_field_to_guest(copy, nat.copy + n, status) ) rc = -EFAULT; } } -- 2.30.2